//配置相关的拦截器
import axios from 'axios'
import QueryString from 'qs';

let base='';

//传送json格式的一个post请求
export  const postRequest=(url,params)=>{
    return axios({
        method:'post',
        url:`${base}${url}`,
        data: QueryString.stringify(params)
    })
}

export const getRequest=(url)=>{
    return axios({
        method:'get',
        url:`${base}${url}`,
    })
}

